package com.sf.model.cms;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

/**
 * 角色
 *
 * @author SnowFigure {Orgin:風佑兲}
 * @date 2014年11月30日 上午10:56:03
 */
public class ArticleType extends Model<ArticleType> {

    public static final ArticleType me = new ArticleType();
    public static final String ID = "id"; // id
    private static final long serialVersionUID = 9055386396899161693L;


    public Page<Record> paginate(int rows,int page){

        return Db.paginate(page, rows,
                "select * ",
                "  from article_type ate ");
    }

}
